<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags/form" %>

<fmt:setBundle basename="Inscripcion_Resources"/>
<table width="100%" border="0">
    <tr>
        <td width="25%" align="left">
            <span class="label">
                <fmt:message key="label.empresa"/>
            </span>
        </td>
        <td width="20%" align="left">
            <input type="text" class="Ctrl-HiS" name="empresa" value="${postulante.empresa}">
        </td>
        <td align="left">
            <spring:errors path="empresa" cssClass="error" />
        </td>
    </tr>
    <tr>
        <td width="25%" align="left">
            <span class="label">
                <fmt:message key="label.area"/>
            </span>
        </td>
        <td width="20%" align="left">
            <input type="text" class="Ctrl-HiS" name="area" value="${postulante.area}">
        </td>
        <td align="left">
            <spring:errors path="area" cssClass="error" />
        </td>
    </tr>
    <tr>
        <td>
            <span class="label">
                <fmt:message key="label.cargo"/>
            </span>
        </td>
        <td>
            <input type="text" class="Ctrl-HiS" name="cargo" value="${postulante.cargo}">
        </td>
        <td align="left">
            <spring:errors path="cargo" cssClass="error" />
        </td>
    </tr>
    <tr>
        <td>
            <span class="label">
                <fmt:message key="label.direccion"/>
            </span>
        </td>
        <td>
            <input type="text" class="Ctrl-HiS" name="direccionLaboral" value="${postulante.direccionLaboral}">
        </td>
        <td align="left">
            <spring:errors path="direccionLaboral" cssClass="error" />
        </td>
    </tr>
    <tr>
        <td>
            <span class="label">
                <fmt:message key="label.distrito"/>
            </span>
        </td>
        <td>
            <select name="distritoLaboral" class="TxAr-HiS">
                <c:forEach items="${distritos}" var="distrito">
                    <c:choose>
                        <c:when test="${distrito.codigo eq postulante.distritoLaboral}">
                            <option value="${distrito.codigo}" selected>${distrito.descripcion}</option>
                        </c:when>
                        <c:otherwise>
                            <option value="${distrito.codigo}">${distrito.descripcion}</option>
                       </c:otherwise>
                    </c:choose>
                </c:forEach>
            </select>
        </td>
    </tr>
    <tr>
        <td>
            <span class="label">
                <fmt:message key="label.telefono"/>
            </span>
        </td>
        <td>
            <input type="text" class="Ctrl-HiS" name="telefonoLaboral" value="${postulante.telefonoLaboral}">
        </td>
        <td align="left">
            <spring:errors path="telefonoLaboral" cssClass="error" />
        </td>
    </tr>
    <tr>
        <td>
            <span class="label">
                <fmt:message key="label.fax"/>
            </span>
        </td>
        <td>
            <input type="text" class="Ctrl-HiS" name="fax" value="${postulante.fax}">
        </td>
    </tr>
    <tr>
        <td>
            <span class="label">
                <fmt:message key="label.email"/>
            </span>
        </td>
        <td>
            <input type="text" class="Ctrl-HiS" name="emailLaboral" value="${postulante.emailLaboral}">
        </td>
    </tr>
</table>